<!DOCTYPE html>
<html xmlns="http://www.w3c.org/1999/xhtml"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui">
<h:head></h:head>
 <h:body>
 
 <h:form>
    <p:fileUpload listener="#{fileUploadController.upload}" mode="advanced" dragDropSupport="false"
           update="messages" sizeLimit="1000000" fileLimit="3" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" />
 
    <p:growl id="messages" showDetail="true" />
    <h3>Maximum size: 1 MB</h3>
</h:form>

      
  </h:body>
</html>
